package com.linx.message.domain.vo;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.linx.common.excel.annotation.ExcelDictFormat;
import com.linx.common.excel.convert.ExcelDictConvert;
import com.linx.message.domain.MessageInfo;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;



/**
 * 消息视图对象 message_info
 *
 * @author linx
 * @date 2024-11-09
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = MessageInfo.class)
public class MessageInfoVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @ExcelProperty(value = "主键")
    private Long messageInfoId;

    /**
     * 备注
     */
    @ExcelProperty(value = "备注")
    private String remark;

    /**
     * 是否删除（0代表否 1代表是）
     */
    @ExcelProperty(value = "是否删除", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "0=代表否,1=代表是")
    private String isDelete;

    /**
     * 消息标题
     */
    @ExcelProperty(value = "消息标题")
    private String messageTitle;

    /**
     * 消息内容
     */
    @ExcelProperty(value = "消息内容")
    private String messageContent;

    /**
     * 模块名字：低碳能源，便捷通行，视频巡视等
     */
    @ExcelProperty(value = "模块名字：低碳能源，便捷通行，视频巡视等")
    private String messageType;

    /**
     * 系统，顺丰，捷顺
     */
    @ExcelProperty(value = "系统，顺丰，捷顺")
    private String messageSource;

    /**
     * 模块名称具体小类
     */
    @ExcelProperty(value = "模块名称具体小类")
    private String messageTypeTwo;

    /**
     * 是否发送短信（0代表否 1代表是）
     */
    @ExcelProperty(value = "是否发送短信", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "0=代表否,1=代表是")
    private String isSend;

    /**
     * 是否已读（0代表否 1代表是）
     */
    @ExcelProperty(value = "是否已读", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "0=代表否,1=代表是")
    private String isRead;

    /**
     * 发送人
     */
    private String sender;

    /**
     * 接收人
     */
    private String recipient;


}
